import './main.css'

import { warn } from './warn.js'
import html from './footer.html'
import img from './logo.png'

console.log('this is index page')

warn('"txt" is string')

function appendNode (domTxt) {
  const template = domTxt;
  let tempNode = document.createElement('div');
  tempNode.innerHTML = template;
  return template
}

document.body.append(appendNode('<b>动态添加内容</b>'))

document.body.append(html)

const Img = new Image()

Img.src = img
document.body.append(Img)

